package com.lyy.lottery.controller.param;

import lombok.Data;

@Data
public class PageParam {
    private Integer currentPage=1;//当前页
    private Integer pageSize=5;//一页记录数量

    //获取偏移量
    public Integer getOffset(){
        return (currentPage-1)*pageSize;
    }
}
